<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Token extends TimeModel
{

    protected $name = "token";

    protected $deleteTime = false;

    
    
    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    public function setLifeAttr($value)
    {
        return strtotime($value);
    }

    public function getLifeAttr($value)
    {
        if (empty($value)){
            return '';
        }
        return date('Y-m-d', $value);
    }


}